import Vue from 'vue'
import Router from "vue-router"

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: "Home",
            component: () => import('@/views/home')
        },
        {
            path: '/city',
            name: "City",
            component: () => import('@/views/city')
        },
        {
            path: '/detail/:id',
            name: "Detail",
            component: () => import('@/views/detail')
        }
    ],
    scrollBehavior() {
        return {x: 0, y: 0}
    }
})
